package com.tanglongan.concurrent._basic;

public class Demo07 {
    public static void main(String[] args) {
        Demo07Thread t = new Demo07Thread();
        Thread t1 = new Thread(t);
        Thread t2 = new Thread(t);
        Thread t3 = new Thread(t);

        t1.start();
        t2.start();
        t3.start();
    }
}

class Demo07Thread extends Thread {
    private int count;

    @Override
    public void run() {
        count--;
        System.out.println(Thread.currentThread().getName() + ": count=" + count);
    }
}